package com.ydj.app.protocol.http.cms;

import com.ydj.app.enumerate.MemberLevelEnum;
import com.ydj.framework.protocol.JsonBaseRequest;
import com.ydj.framework.protocol.JsonPageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Getter
@Setter
@Accessors(chain = true)
public class CmsWebUserUpdateLevelReq extends JsonBaseRequest {

    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "缺少用户ID")
    private Long id;

    @ApiModelProperty(value = "会员/非会员", required = true)
    @NotNull(message = "缺少会员等级")
    private MemberLevelEnum memberLevel;

    @ApiModelProperty(value = "有效期")
    private Date expTime;

}